package com.bwie.bargain.service.impl;

import com.bwie.miaosha.common.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.miaosha.common.utils.PageUtils;
import com.bwie.miaosha.common.utils.Query;

import com.bwie.bargain.dao.BargainbetweenDao;
import com.bwie.bargain.entity.BargainbetweenEntity;
import com.bwie.bargain.service.BargainbetweenService;


@Service("bargainbetweenService")
public class BargainbetweenServiceImpl extends ServiceImpl<BargainbetweenDao, BargainbetweenEntity> implements BargainbetweenService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BargainbetweenEntity> page = this.page(
                new Query<BargainbetweenEntity>().getPage(params),
                new QueryWrapper<BargainbetweenEntity>()
        );

        return new PageUtils(page);
    }

}